package com.coolwar.design.strategy;

public class Test {

    public static void main(String[] args) {

        String[] type = {"hello3", "hello1", "hello2", "hello4", "hello5"};
        BaseHandle.hello(type);

        for (String string : type) {
            BaseHandle baseHandle = HandelRoute.getInstance().get(string);
            if (baseHandle == null) {
                System.out.println("没找到可执行的hello");
            } else {
                baseHandle.handle();
            }
        }
    }

}
